Report question

Question: Mysql query to dynamically convert rows to columns on the basis of two columns