맞히다 means to get something right or hit a target, and a verb in -아/어 form before it says how you got there: 알아맞히다 "work it out and get it right," 때려맞히다 "nail it on a wild guess," 찍어 맞히다 and 콕 집어 맞히다 "pick out the exact answer" (제가 원하는 답을 콕 찍어 맞히셔야 합니다). Several lines here are quiz-show captions praising someone who guessed correctly: [감으로 정답을 때려맞힌 석삼!]. Do not confuse the spelling with 맞추다, which is fitting or matching things against each other; 맞히다 is landing on the correct one.