YOU SAID:
do you know how to do the thing
INTO JAPANESE
あなたはそのことをする方法を知っていますか
BACK INTO ENGLISH
Do you know how to do that
INTO JAPANESE
そんな事どうやって覚えた?
BACK INTO ENGLISH
Why do you know how to do that?
INTO JAPANESE
そんな事どうやって覚えた?
BACK INTO ENGLISH
Why do you know how to do that?
That didn't even make that much sense in English.