What is the output? int x = 2; int total = 0;…

What is the output? int x = 2; int total = 0; switch (x) { case 1: total += 1; case 2: total += 2; case 3: total += 3; break; } switch (x) { case 1 -> total += 10; case 2 -> total += 20; default -> total += 30; } System.out.println(total);