Results 1 to 4 of 4

Thread: Easy math problem

  1. #1
    Join Date
    Apr 2007
    Posts
    513
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Easy math problem

    I havn't used this site in a long time but I remember this math page being useful for basic math problems which I found frustrating. This problem is insanly stupid but I need it to write a program in order to maximise the yield. It's kinda like balancing heat and pressure in the production of ammonia which I forgot how to do because of bad memory + bad chem student.

    So just to make things easier I will simplify the question, and use buttons to represent the variables.

    So lets say 1 package(1) contains 75 blue buttons and 100 red buttons and another package(2) contains 125 blue buttons and 50 red buttons.

    Now the ratio of of blue:red for the packages are:

    3:4 - (1)
    5:2 - (2)

    Now I want to figure out some method for balancing the ratios of the packages so the ratio of blue buttons to red buttons is 1:1.

    So inception with ratios
    Last edited by Orbital; 05-01-2012 at 11:33 AM.

  2. #2
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    Total amount of buttons is 175.
    R+B = 175 so R = 175 - B
    you want R = B
    So 175 - B = B

    Leads to 2b = 175 -> b = 175/2 = 87,5 blue buttons or red buttons.
    Unless you're looking for something else?

    edit: read the question again this doesnt make sense. might look at it later, sleep deprivation for the lose.
    Last edited by Markus; 05-01-2012 at 11:39 AM.
    I made a new script, check it out!.

  3. #3
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    blue 75+125=200/2=100
    red 100+50=150/2=75

    So you can't really have 1:1 ratio unless you can drop few blues.
    There used to be something meaningful here.

  4. #4
    Join Date
    Apr 2007
    Posts
    513
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Sorry, I worded it badly. If you have 3 of package (1) and 2 of package (2) you get a combined ratio of 19:16

    It is defiantly possible.

    EDIT: Solved, just some really easy algebra...

    3x + 5y = 4x +2y

    3y = x

    3 = x/y

    I feel like a dumbass, I wish I was sober when I was trying to figure this out...
    Last edited by Orbital; 05-01-2012 at 01:24 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •