Answer:
The volume increased eightfold.
Explanation:
The formula of a volume of a rectangular prism:

l - length
w - width
h - height
We have l = 5cm, w = 7cm and h = 12cm.
Substitute:

Doubled the dimensions:
l' = (2)(5cm) = 10cm, w' = (2)(7cm) = 14cm, h = (2)(12cm) = 24cm.
Calculate the new volume:

Calculate the quotient


Generalization:
V = lwh - the volume of a prism l × w × h
2l × 2w × 2h - new dimensions
V' = (2l)(2w)(2h) = 8lwh = 8V - new volume