Answers
Terms are in the ratio 5 : 12, Number that must be added to each term of the ratio 5: 12, so that the ratio becomes 2 : 3
At first, numbers are in the ratio 5 : 12.
Now,
Let the number which must be added to this ratio to make it equal to 2 : 3 = x
Then, below proportion is true
(5 + x) : (12 + x) :: 2 : 3
So, using the below property of proportion we can find the value of a.
Product of extremes = Product of means
(5 + x) times 3 = (12 + x) times 2
15+ 3x = 24 + 2x
3x-2x=24-15
x = 9
So, 9 must be added to each term of the ratio 5 : 12, so that the ratio becomes 2 : 3.
var = "Python Programming"
Ruby program to add two integer numbers
how to create an array with Array.[](*args) in Ruby ?
What are the various Ruby runtimes, and how are they different?
Ruby program to check whether the given number is prime or not
Ruby program to reverse a string
Ruby program to check whether the given number is palindrome
Ruby program to print Fibonacci series
How to Replace array elements in Ruby?
Ruby program to print an array
Ruby program to check whether the given number is Armstrong
Program to Print Triangle of Numbers in Ruby
How to add/remove elements to Array in Ruby?
How to shuffle an array in Ruby?
Creating Array with Array.new(size, obj) in Ruby
Ruby program to generate random numbers
Ruby program to Calculate the factorial of given number
What are #method_missing and #send? Why are they useful?
How to Sort Array in Ruby?
How to get index of array element in Ruby
How to Get Input with Gets in Ruby
How to create two dimensional array in ruby?