Given an array of integers and a target number, find a triplet which adds up to the target number.
Array: [2, 5, 3, 6, 9], Target: 12
[3,5,4]
Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
Given an array of integers and a target number, find a triplet which adds up to the target number.

### Response:
[3,5,4]