The person who was answered me seid to me that history is useful, firstly, not to forget the fact of the past, for example, the people who have died for defending the rights of the persons and thank to them we have advanced as a society. And secondly to try not to make the same mistakes of the past.
Also, he said to me that the philosophy is useful to think about our actions and about the things that have happened and happen in the present.
In my opinion, this person is in the correct and I agree with him. So instead of not paying attention in these classes I started learning from them.
To conclude with this theme, I don't belive that history and philosophy are a waste of time and money.