If you change "of" to "for" in the first sentence it would be a correct sentence but would have a different meaning, you could say it if, for example, you run a restaurant and last night you had two customers who ordered pizza.
The second sentence would just be incorrect.