The value of p would be 40. This is because the ratio of p:q = 10:5. this could be simplify into p:q = 2:1. Applying the ratio p:20 = 2:1, P=40.
Feet
_____
second
10 feet
________
16 second
equals
.625 feet per second
312-170=142
142÷2=71
170+71=241
241+71=312
train A weighs 241 tons