successfully done
Nope. You have not created 2 functions and called them from main program (loop). But it's simple; take your inline code out of loop() and put it into functions, then call them.
I don't know how to divide 64/...
Neither do I. The part about calculating currents for the POT and LDR makes no sense at all. You can get the voltage from V = 5.0*adc_count/1023.0, then if you know the resistance of the POT and LDR voltage divider the currents can be calculated. But where does the magic number 64 come from?
I am reading the resistance for both LDR and POT
No, you are reading ADC counts, which are proportional to the voltage on the pin.