The Answer Is Y=-8x
This is because x is multiplied by -8 to find y.
Bearing in mind that, the ratio here is 1:7 form A to B, that matters, because, the AB segment gets split in 8 pieces, and AP takes 1 slice whilst PB takes 7 slices

I’m positive it’s x=18 because add 6 to both sides, and add 6 plus 12.
To make a dot plot, make a numbered line and add dots above the numbers of the given ages. If there are more than one of the same number, add a dot above the dot already there.
See attached picture: