# Thread: so, how many days at each city?

1. ## so, how many days at each city?

Guys, its me again.
Once again professor leaving us stuff that inst on the curriculum/text book.

need a hand here got like 10 of these to do.

Heres one of them:

Jack and Jill spent two weeks (14 nights) touring Boston, New York City, And Philadelphia, and Washington DC. They Paid $120,$200, $80, and$100 Per night respectively. Their Total bill was $2020. The number of days spent in NYC was the same as the total number days spent in Boston and D.C. They spent 3 times as many days in NYC as they did in philly. How many days did they spend in each city? Thanks in advance, Gus 2. ## Dantoker Do you know how to change a word problem to the equations? 3. Hello, Gus! Jack and Jill spent 14 days touring Boston, NYC, Phillly, and DC. They paid$120, $200,$80, and $100 per day respectively. Their total bill was$2020.
The number of days spent in NYC was the same as the total number days spent in Boston and DC.
They spent 3 times as many days in NYC as they did in Philly.
How many days did they spend in each city?

We have: . $\displaystyle \begin{array}{ccccc}B &=& \text{no. days in} & \text{Boston} \\ N &=& \text{no. days in} & \text{NYC} \\ P &=& \text{no. days in} & \text{Philly} \\ D &=& \text{no. days in} & \text{DC} \end{array}$

$\displaystyle \begin{array}{cccc}\text{It was a 14-day tour:} & B + N + P + D \:=\:14 \\ \\ \text{The bill was \$2020:} & 120B + 200N + 80P + 100D \:=\:2020 \\ \\
N\text{ equals }B\text{ plus }D\!: & N \:=\:B+D \\ \\
N\text{ is 3 times }P\!: & N \:=\:3P \end{array}$We have a system of four equations in four variables. Solve it . . . you should get: .$\displaystyle \begin{Bmatrix}B \:=\:3 \\ N \:=\:6 \\ P\:=\:2 \\ D\:=\:3\end{Bmatrix}\$

4. ok well i see how you deciphered it.

But how did you go about to solving it...

As i said i got a bunch more of these, would be cool if you could show me the steps to solve it .

Thank you very much.

5. Originally Posted by Danktoker
ok well i see how you deciphered it.

But how did you go about to solving it...

As i said i got a bunch more of these, would be cool if you could show me the steps to solve it .

Thank you very much.
I don't suppose you're taking linear algebra? Solving n linear equations in n variables would be covered near the beginning of an introductory course.

Usually in high school algebra we are limited to cases n = 2, maybe n = 3, and in fact the same methods apply to n > 3, but things can get cumbersome (hard to keep track of) if we don't do it systematically.

Basically, we multiply equations by constants and add equations together strategically to yield solutions. By using matrices we can work purely with the coefficients so we don't have to bother with the variable names (B, N, P, D). Gaussian elimination is simple enough to perform with paper and pencil, but it can take a little getting used to.

Not sure how much your professor expects you to know...

EDIT: Since the numbers are small, it is faster and easier in this case to just try out numbers. We know N must be a multiple of 3. There are only so many combinations. In particular, it can be seen quite quickly that N must equal 6. (N + N + N/3 = 14.) After that, we have one of the following cases:

(B, D) = (0, 6)
(B, D) = (1, 5)
(B, D) = (2, 4)
(B, D) = (3, 3)
(B, D) = (4, 2)
(B, D) = (5, 1)
(B, D) = (6, 0)

6. Im sorry i must be really stupid.

I just really dont see how to show the work for these.....

Guys im sorry.
As ive said before, math 45 and this professor is giving us stuff from math 140
and he batlantly says he is, many complain filed on him and he still doesnt care.
Everyone in the class is either failing or barely passing. He doesnt care though he still tests us on stuff that isnt even in our textbooks.

7. Originally Posted by Danktoker
Im sorry i must be really stupid.

I just really dont see how to show the work for these.....

Guys im sorry.
As ive said before, math 45 and this professor is giving us stuff from math 140
and he batlantly says he is, many complain filed on him and he still doesnt care.
Everyone in the class is either failing or barely passing. He doesnt care though he still tests us on stuff that isnt even in our textbooks.
The three statements

B+P+N+D = 14
N = B+D
N = 3P

allow you to narrow a lot of things down, because you can make substitutions in the first equation based on the other two.

B+P+N+D = 14
N = B+D

====> N+N+P = 14

N+N+P = 14
N = 3P

====> N+N+(N/3) = 14

This last equation is in one variable, so you solve for N to get

N = 6

It immediately follows from

N = 3P

that

P = N/3 = 6/3 = 2

Now you need B and D. You must use the equation we haven't looked at yet,

120B + 200N + 80P + 100D = 2020

We know B and D have to add up to 6. I listed in my first post the possibilities for B and D (since they must be non-negative integers, there are only 7 possibilities). Just try out each combination until you get one that satisfies the last equation.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 0, "mathjax_asciimath": 0, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9136109352111816, "perplexity": 1347.2953575874044}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 5, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2018-17/segments/1524125945552.45/warc/CC-MAIN-20180422080558-20180422100558-00589.warc.gz"}