A candle flame 3cm high is placed at a distance of 3m from a wall. How far from the wall must a concave mirror be placed in order that it may form an inverted image of the flame of height 9cm on the wall? Also, determine the focal length of the mirror.