class Solution { public int solution(int n, int k) { int answer = 0; if(n / 10 > 0) { answer = (12000 * n + 2000 * k) - (n / 10) * 2000; }else { answer = 12000 * n + 2000 * k; } return answer; } }