I do not quite understand your question, but I assume that, for example, someone gives you the number 98, encoded in BCD, which will be:
1001 1000
and you should get:
62H
What I suggest:
1) converts a BCD encoded value to a decimal value (D)
2) convert D to hexadecimal value.
Depending on your chosen programming language, this task will be simpler or more complicated.
EDIT: in Java, it could be:
byte bcd = (byte)0x98;
int decimal = (bcd & 0xF) + (((int)bcd & 0xF0) >> 4)*10;
System.out.println(
Integer.toHexString(decimal)
);