Dropping observations w.r.t. 2 different variables

Well, to be honest I do not know how to express my problem so I have uploaded an image.


I need a command for Stata to exclude families that do not have children that are younger than 18.

So, the data set should look like this after the exclusion.


Thank you for your time and consideration.
Last edited: