Задание

They wasted their money on buying useless things.

gerund

participle