There is no exact answer to this question as the solution may depends upon variants of ransomware Unfortunately , decryption methods do not exist for the newest ransomware variants.if it is an old ransomware variant you can recover your data by using the following links
It all depends on the strength of the encryption algorithm, and how much computing power you can put in to crack it. For ransomeware, the best approach is usually to pay up and avoid the consequences and hassle.
Security software companies and research organizations are collaborating to break the encryption codes of ransomware and free those who have fallen victim to cybercriminals. For many, these efforts take time.
There are some ransomware attacks that have somewhat been solved, and you can find more about these here: