{"raw_statement":[{"iden":"statement","content":"When performing calculations on linear equations, finding the intersection point of two lines is a very common task. Write a program that takes two linear equations in the form of $y = m x + b$ and outputs the $x$ coordinate at which the two lines intersect.\n\nThe first line contains two floating point values representing the $m$ and $b$ values of the first linear equation respectively. The second line contains the two variables corresponding to the $m$ and $b$ variables of the second linear equation.\n\nA single floating point value that represents the $x$ coordinate at which the two lines intersect.\n\nAssume that all test cases contain lines that do intersect.\n\n"},{"iden":"input","content":"The first line contains two floating point values representing the $m$ and $b$ values of the first linear equation respectively. The second line contains the two variables corresponding to the $m$ and $b$ variables of the second linear equation."},{"iden":"output","content":"A single floating point value that represents the $x$ coordinate at which the two lines intersect."},{"iden":"note","content":"Assume that all test cases contain lines that do intersect."}],"translated_statement":null,"sample_group":[],"show_order":[],"formal_statement":"**Definitions**  \nLet $ m_1, b_1 \\in \\mathbb{R} $ be the slope and y-intercept of the first line.  \nLet $ m_2, b_2 \\in \\mathbb{R} $ be the slope and y-intercept of the second line.  \n\n**Constraints**  \n1. $ m_1 \\neq m_2 $ (lines intersect at exactly one point).  \n\n**Objective**  \nFind the $ x $-coordinate of the intersection point:  \n$$\nx = \\frac{b_2 - b_1}{m_1 - m_2}\n$$","simple_statement":"Given two lines y = m1*x + b1 and y = m2*x + b2, find the x-coordinate where they intersect.","has_page_source":false}