HelpContactFor teachers and institutes
>_StemPy Lab
Mock TestsClasses

>_StemPy Lab

Learn. Solve. Code the solutions. Test yourself.

Live examsFree mock exams, timed and rankedEveryone starts together, and your score and rank come the moment it ends.See the exams →

Learn

  • Physics
  • Chemistry
  • Mathematics
  • Biology
  • Python Programming
  • Statistics & Data Science
  • Classes
  • Groups

Practice

  • Problems
  • Quizzes
  • Mock Tests
  • Prepare for an Exam
  • Question Sets
  • Exams
  • Certificates
  • Python Labs
  • AI Practice Generator
  • Student-Created Tests

Community

  • Discussions
  • Resources
  • Notes
  • Blog

Account

  • Log in
© 2026 senLearn. All rights reserved.HelpAboutContactPrivacy PolicyTerms of UseRefund Policy
  1. Problems
  2. /A toy maker builds cars and trains. A car needs 2 hours on the moulding machine and 1 hour on the…
EasyMathematicsHigh School (11–12)Algebra › Linear ProgrammingNumericalBoard Exam

A toy maker builds cars and trains. A car needs 2 hours on the moulding machine and 1 hour on the…

StemPy LabContributed by StemPy Lab

Try it on paper first. A hint, the key idea and the worked solution are here when you need them.

A toy maker builds cars and trains. A car needs 222 hours on the moulding machine and 111 hour on the painting bench. A train needs 111 hour on the moulding machine and 222 hours on the painting bench. In a day the moulding machine runs for at most 141414 hours and the painting bench for at most 161616 hours. A car earns a profit of 555 dollars and a train earns 666 dollars. How many of each should be made in a day for the greatest profit, and what is that profit?

Check your answer

Work it out on paper, then type your number. The answer itself stays hidden.

dollars
Need a reminder? The key ideaShowHide

Name the unknowns xxx and yyy with their units. Write the objective, such as the profit ZZZ. Write one inequality for each limit, and add x≥0x \ge 0x≥0 and y≥0y \ge 0y≥0. Find the corners of the feasible region, work out ZZZ at each, and choose the best. Say the plan and the value in the words of the story.

The worked solution

Have you tried it?

Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.

Step 1. The model. Maximise Z=5x+6yZ = 5x + 6yZ=5x+6y dollars subject to 2x+y≤142x + y \le 142x+y≤14, x+2y≤16x + 2y \le 16x+2y≤16, x≥0x \ge 0x≥0 and y≥0y \ge 0y≥0.

Step 2. The corners. From 2x+y=142x + y = 142x+y=14 we get y=14−2xy = 14 - 2xy=14−2x. Then x+2(14−2x)=16x + 2(14 - 2x) = 16x+2(14−2x)=16 gives −3x=−12-3x = -12−3x=−12, so x=4x = 4x=4 and y=6y = 6y=6. The other corners are (0,0)(0, 0)(0,0), (7,0)(7, 0)(7,0) and (0,8)(0, 8)(0,8).

Step 3. The profit. At (0,0)(0, 0)(0,0), Z=0Z = 0Z=0. At (7,0)(7, 0)(7,0), Z=35Z = 35Z=35. At (4,6)(4, 6)(4,6), Z=20+36=56Z = 20 + 36 = 56Z=20+36=56. At (0,8)(0, 8)(0,8), Z=48Z = 48Z=48.

Step 4. Say it. Make 444 cars and 666 trains a day. The profit is 565656 dollars.

Check. Moulding uses 2(4)+6=142(4) + 6 = 142(4)+6=14 hours and painting uses 4+2(6)=164 + 2(6) = 164+2(6)=16 hours.

Log in to save this for later
← All Problems
← A firm makes x batches of product P and y batches of product Q…A baker has 60 kg of flour and 40 kg of sugar… →
More onAlgebra › Linear Programming

Discussion (0)

Log in to join the discussion.

Loading…

Learn it in

  1. Manufacturing problemsLinear Programming Problems from Words

More on this topic

  1. A potter makes x bowls and y vases in a week, both in whole numbers…Hard
  2. A school invests up to 50 thousand pounds in two plans…Medium
  3. Warehouse W1 holds 60 units and warehouse W2 holds 40 units…Hard
  4. Depot D1 holds 35 crates and depot D2 holds 45 crates…
Medium
  • A diet needs at least 10 units of fibre and at least 15 units of iron…Hard
  • All problems on this topic →