There is a formula which says that if you know 2 sides of a triangle and the angle in between those sides then
the area = 1/2 of one side times the other times the sine of the angle, that is 1/2absinx
If two similar shapes have sides ( or any other similar line measurements) in the ratio p:q then the areas will be in the ratio p^2:q^2. Here you are given the ratio of the areas so can work back to ratio of lengths. The ratio of volumes would be p^3:q^3