(adsbygoogle = window.adsbygoogle || []).push({}); 1. The problem statement, all variables and given/known data

Suppose you spend $12.30 on chocolate bars and chips. If chocolate bars cost $1.20 and each bag of chips cost $2.50, how many bags of chips did you buy?

*Both the number of chocolate bars and bags of chips must be positive.

2. Relevant equations

12.30 = 1.20x + 2.50y

3. The attempt at a solution

What is the method i go about solving this problem besides guess and check. I assume it has something to do with the euclidian algorithm since thats what I have been learning.

Cheers.

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Homework Help: What is a systematic method to solve this Diophantine equation?

**Physics Forums | Science Articles, Homework Help, Discussion**