Question 280422
We have three variables(unknowns)
We need three equations
we are told that there are 574 rooms on the three ships
p+c+m=574
m=2p-40
c=p+38
substitute and solve for p
p+p+38+2p-40=574
4p-2=574
4p=576

p=144
c=p+38
c=182
m=2p-40
m=248