So u change the sentence into a question about the underlined word ¿ Que tiene Paco? ¿ Quien Compra el sombrero negro?
So basically I think u take the sentence and turn it into a question using the preposition they give u So like the first one would be ¿Porque paco estudia?