You just have to add the two numbers ad divide by two!
3x-5=2x-6
Move 2x to the same side as 3x.
3x-2x = x
X-5=-6
add 5 to the -6.
X = 5-6
X=-1
Answer:
public class MovieRental
{
public static void main(String[] args)
{
Scanner in = new Scanner(System.in);
System.out.print("Enter the number of movie rentals: ");
int movieRentals = in.nextInt();
System.out.print("Enter the number of members referred to the video club: ");
int memberReferral = in.nextInt();
in.close();
double discountVal = Math.min(movieRentals + memberReferral, 75);
System.out.println("The discount is equal to: " + discountVal);
}
}