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 38 gallons of water and Hank's aquarium hold 52 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?