The rule for the number of fish in a home aquarium is 1 gallon of water for each inch of fish length. Marta's aquarium holds 27 gallons of water and Hank's aquarium hold 45 gallons of water. The aquarium holds two types of fish, fish A and fish B. If Marta bought 3 of fish A and 2 of fish B, and Hank bought 3 of fish A and 4 of fish B, how long is fish A and how long is fish B?