I need some help on how to write constraints. For example, I don't get how to do these problems and write a constraint for them:

1) A food store owner buys turkeys and hams. The owner plans to purchase at most a total of 50 products. Write a constraint.

2) The food store owner plans to purchase at most 10 more turkeys than hams. Write the constraint.

Thanks!