A rectangular prism has a volume of 344 cubic units. Find its volume of two dimensions were doubled, and a third dimension was tripled