Below is an instruction that describes a task. Write a response that appropriately completes the request in Chinese. Please answer in Chinese.

### Instruction:
 三个朋友的平均年龄是40岁。贾里德比哈基米大十岁，莫莉的年龄是30岁。哈基米多大？


### Response:
 三个人的总年龄是40*3= <<40*3=120>>120
如果莫莉的年龄是30岁，那么贾里德和哈基米的年龄总和是120-30 = <<120-30=90>>90
假设哈基米的年龄是x。由于贾里德比哈基米大10岁，贾里德的年龄是x+10岁。
两人的年龄总和是x+x+10 = 90
2x+10 = <<90=90>>90
2x=80
哈基米的年龄是x=80/2 = <<80/2=40>>40