If your dimensions are all in inches, then it's LxWxH and then divide by 231.
So 48x12x15 = 8640 cubic inches
Then divide by 231, so it's 37.4 US gallons.
For the second tank:
48x15x18 = 12,960 cubic inches
Then divide by 231, so it's 56.1 US gallons.
It's always good to know how to convert it yourself.