Is this wiring up to code?
After reading your comment on the wire size there are multiple code violations.
If there is 14 awg wire on a general purpose branch circuit the maximum breaker is 15 amps.
Also the nmb needs to be secured within 8-12” of the boxes. if clamps 12” is ok  but those appear to just be KO or knock out entries so a staple is required within 8”.
Today different sizes of nmb usually have different sheath colors; white for 14awg,  yellow for #12 and orange for 10awg. This was started as an inventory tracking but most manufacturers have adopted the colors/size
It is not mandated but started after Y2K and makes it easy to catch changes in wire sizes.
Black cable is used for both 6&amp;8 awg not sure why they did not separate those sizes by color.