Let's say you have a brick.
You lay the brick on a piece of paper and make its outline of one of the side with a pencil. You measure the area of that outline (a rectangle most probably as bricks are blocks).
And it turns out to have an area L×W = 7.58 cm^2.
Then you flip the brick and measure its height (i.e. length from one flat face to the other parallel to it). It turns out to have H = 33.4 cm.
So how would you figure out volume of the brick?
I hope you remember from somewhere that volume of a block (nerd: cuboid) = L×W×H = area * height.
So (7.58 cm^2) * (33.4 cm) = 253.14 cm^3 (not really but we're kinda close)
Volume is ofc measured in cm^3 because you're doing cm^2 * cm = cm*cm*cm = cm^3
So now let's say you forgot the height but you still have volume and base area written down. Then just rearrange equation.
(7.58 cm^2) * height = 253.14 cm^3
Divide with area
height = 253.14 cm^3 / (7.58 cm^2)
Units are just like multipliers, i.e. you can treat them like variables (x, y, a, f whatever). They cancel out.
When you divide cm^3 with cm^2, you get cm^(3-2) = cm^1 = length.
= 253.14 / 7.58 × cm^3 / cm^2 = 33.4 cm
Best wishes!