Equations and solving for dimensions