[tex] \text{u =?} \\ \text{ v = 24cm} \\ \text{ m = 0.5} \\ \text{ f = ?}[/tex]
[tex] \implies \text{m} = \frac{ \text{v}}{ \text{u}} = \frac{24}{ \text{u}} [/tex]
[tex] \implies 0.5 = \frac{1}{2} = \frac{24}{ \text{u}} \\ \\ \therefore \text{u} = 48 \text{cm}[/tex]
[tex] \implies \frac{1}{ \text{f}} = \frac{1}{ \text{v}} - \frac{1}{ \text{u}} [/tex]
[tex] \implies \text{f} = \frac{1}{24} - \frac{1}{48} = \frac{2 - 1}{48} = \frac{1}{48} [/tex]
[tex] \text{f} = 48 \text{cm}[/tex]
[tex]\underline{ \text {According To Question,}}[/tex]
[tex] \text{24cm is the distance of object from lens,}[/tex]
[tex] \text{m} = \frac{ \text{v}}{ \text{u}} \\ \\ \implies \frac{1}{2} = \frac{ \text{u}}{24} [/tex]
[tex] \therefore \text{v} = \frac{24}{2} = 12 \text{cm}[/tex]
[tex] \implies \frac{1}{ \text{f}} = \frac{1}{ \text{v}} - \frac{1}{ \text{u}} [/tex]
[tex] \implies \frac{1}{ \text{f}} = \frac{1}{12} - ( \frac{1}{ - 24} )[/tex]
[tex] \implies \frac{1}{ \text{f}} = \frac{1}{12} + \frac{1}{24} = \frac{2 + 1}{24} = \frac{3}{24} [/tex]
[tex] \implies \text{f} = \frac{24}{3} = 8 \text{cm}[/tex]