Josie has a small fish tank shaped like a rectangular prism. Her fish tank measures 7 inches tall and 9 inches wide. If Josie's fish tank holds 378 cubic inches of water, how many inches long is it?