Estimating astronomical sizes and distances using simliar triangles