Arturo O. answered  04/22/20
Experienced Physics Teacher for Physics Tutoring
If the variation is direct, the y/x ratios will be the same. If the variation is inverse, the xy products will be the same. That is how you can test to see which one applies.
30/24 = 1.25
5/4 = 1.25
15/12 = 1.25
The y/x ratios are the same, so this is direct variation.