What is the meaning of [To kill two birds with one stone]

to solve two problems at once.
“By taking my dad on holiday, I killed two birds with one stone. I got to go away but also spend time with him.”