let j be the number of comic books jim has.
let c be the number of comic books charles has.
let b be the number of comic books bob has.
we know b = 27.
c= 2/3 * 27 = 18 since charles has 2/3 many books of bob's 27.
j= 3 * 18 = 54 since jim has three times as many books as charles.
Answer: Jim has 54 comic books.
Hope that helps . . .