For example:

A vase is placed 1.0 m from a concave len. The vase is 35 cm high. The focal length of the len is 30 cm. Calculate the distance of the image from the lens.

The answer is

how do you know when the focal point is negative or positive?

thanks in advance.