Is there a word for this type of brainteaser?

I once tried combining a word problem and a pun with ChatGPT: