8.

0-1-2-3-4-5-6-7-8-15-14-13-12-11-10-9-0
Hit Qd Qc Qb Qa Jd Kd Jc Kc Jb Kb Ja Ka
0 0 0 0 0 0 X 0 X 0 X 1 X
1 0 0 0 1 0 X 0 X 1 X X 1
2 0 0 1 0 0 X 0 X X 0 1 X
3 0 0 1 1 0 X 1 X X 1 X 1
4 0 1 0 0 0 X X 0 0 X 1 X
5 0 1 0 1 0 X X 0 1 X X 1
6 0 1 1 0 0 X X 0 X 0 1 X
7 0 1 1 1 1 X X 1 X 1 X 1
8 1 0 0 0 X 0 1 X 1 X 1 X
15 1 1 1 1 X 0 X 0 X 0 X 1
14 1 1 1 0 X 0 X 0 X 1 1 X
13 1 1 0 1 X 0 X 0 0 X X 1
12 1 1 0 0 X 0 X 1 1 X 1 X
11 1 0 1 1 X 0 0 X X 0 X 1
10 1 0 1 0 X 0 0 X X 1 1 X
9 1 0 0 1 X 1 0 X 0 X X 1
0 0 0 0 0 0 X 0 X 0 X 0 X

PETA KARNAUGH

00 01 11 10 00 01 11 10
00 0 0 0 0 00 X X X X
01 0 0 1 0 01 X X X X
11 X X X X 11 0 0 0 0
10 X X X X 10 0 1 0 0

00 01 11 10 00 01 11 10
00 0 0 1 0 00 X X X X
01 X X X X 01 0 0 1 0
11 X X X X 11 1 0 0 0
10 1 0 0 0 10 X X X X

00 01 11 10 00 01 11 10 00 0 1 X X 00 X X 1 0 01 0 1 X X 01 X X 1 0 11 1 0 X X 11 X X 0 1 10 1 0 X X 10 X X 0 1 00 01 11 10 00 01 11 10 00 1 X X 1 00 X 1 1 X 01 1 X X 1 01 X 1 1 X 11 1 X X 1 11 X 1 1 X 10 1 X X 1 10 X 1 1 X .